home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 03 Demos and Info / TIPS.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  2.5 KB  |  125 lines

  1.  
  2. -------------------------------
  3. ! COMMODORE-64  PROGRAMMING   !
  4. !                             ! 3/30/86
  5. !    HINTS & TIPS             !
  6. -------------------------------
  7.  
  8. Hello, Commodore programmers! This
  9. file will show you some interesting
  10. SYS, POKE and PRINT features that
  11. will create some helpful (and neat)
  12. stuff on your 64!
  13.  
  14. Ready? Okay, let's get to it!
  15.  
  16. POKE 808,225
  17.  
  18. The above command will disable the
  19. RUN/STOP key and the LIST command.
  20.  
  21. POKE 808,237 re-enables them.
  22. If it doesn't re-enable them, try
  23.  
  24. PRINT PEEK (808)
  25.  
  26. when you FIRST turn the power on.
  27. The number you get is the one to be
  28. POKEd into 808 to re-enable the
  29. RUN/STOP key and LIST command after
  30.   you disable them.
  31.  
  32. Next:
  33.  
  34. POKE 650,128
  35.  
  36.  
  37. Makes characters repeat if that
  38. key is held down.
  39.  
  40. Next:
  41.  
  42. PRINT PEEK (56321)
  43.  
  44. The above command tells you which
  45. direction the joystick in Port 1
  46. is being moved. The number you
  47. get means the following:
  48.  
  49. 254 - UP     253 - DOWN   
  50.  
  51. 251 - LEFT   247 - RIGHT
  52.  
  53. 250 - UP/LEFT  246 - UP/RIGHT
  54.  
  55. 249 - DN/LEFT  245 - DN/RIGHT
  56.  
  57. 239 - Fire button
  58.  
  59. For coding a certain sentence,
  60.  
  61. POKE 53272,N
  62.  
  63.    This ^ makes the characters on
  64. the screen become stran     and
  65. mystic. There are 100 different
  66. sets of these "weird" characters,
  67. depending on what value you put for
  68. N.
  69.  
  70. (N is any number from 0 to 99.)
  71.  
  72.  
  73. POKE 53272,21 to get back to the 
  74. normal letters (A B C D E F etc.)
  75.  
  76. instead of the strange designs.
  77.  
  78.  
  79. Finally:
  80.  
  81. FOR T=55296 TO 56295:POKE T,N:NEXT T
  82.  
  83. The above command turns all of the 
  84. characters on the screen whatever
  85. color you want (Color = Value of N).
  86.  
  87. For the different color values to put
  88. in place of N, see the top of page
  89. 139 in the Commodore 64 User's G    de
  90. that comes with the computer.
  91.  
  92.  
  93. I'm sure most of you know this, but for
  94. a basibeginner that doesn't know
  95. a whole lot yet, the command below
  96. changes the screen (background) and
  97. border colors to whatever color's
  98. value you put for N (see the top of
  99. page 139 in the C-64 User's Guide.)
  100.  
  101. Border: POKE 53280, N
  102. Screen (Background): POKE 53281, N
  103.  
  104. (To change character (letter)  colors,
  105. hold down the key marked CTRL and
  106. press one of the number keys; they
  107. PRINT statement, these colors will
  108. appear as graphics char    ters. This
  109. simply means that the letters and
  110. numbers will turn that color when the
  111. PRINT statement is encountered.)
  112.  
  113. Please, expert programmers, don't
  114. laugh! At least 45% of the people
  115. reading this don't know about the
  116. information above, and you have to
  117. admit it's helpful ro know.
  118.  
  119. Have fun with the tricks and tips!
  120.  
  121.     --** CHRIS **--
  122.  
  123. Chris Federico
  124. 70366,727
  125.